from django.db import models

# Create your models here.
class Music(models.Model):
    name = models.CharField('音乐名',max_length=50,default='')
    price = models.DecimalField('价格',max_digits=7,decimal_places=2,default='')
    time =models.DateField('发布时间',auto_now=True)
    author=models.CharField('作者',max_length=50,default='')
    isActive=models.BooleanField('是否发布',default=True)

    class Meta:
        db_table='music'